// Redux hooks 类型安全包装器
import { useDispatch, useSelector } from 'react-redux';
import type { RootState, AppDispatch } from './index';

// 类型安全的 useDispatch hook
export const useAppDispatch = () => useDispatch<AppDispatch>();

// 类型安全的 useSelector hook
export const useAppSelector = <T>(selector: (state: RootState) => T) => useSelector(selector);
